/**
 * Created by CJB on 2017-03-29 15:36:46.
 */

(function(){
	//分页插件
	var jqp = null;
	//初始化分页
	$(function () {
	    jqp = $.jqPaginator('#pagination', {
		    visiblePages: 10,
		    currentPage: pageNumber,
		    pageSize: pageSize,
		    totalCounts: totalCount,
		    onPageChange: function (num, type) {
		        if(num != pageNumber)
		            window.location.href = getPath() + "app/logRelation/list/" + num +"/"+pageSize + (isFilter ? ("?" + $("#searchForm").serialize()) : "");
		    }
	    });
	    changeEvenColor("appLogRelationTable");
	    selectAll("appLogRelationTable");//点击全选,判断是全选还是取消全选
	    changTrCss("appLogRelationTable");//复选框选择改变，设置此行的样式，并判断当前情况是否为全选的情况
	    changeTrCheckboxStatu("appLogRelationTable");//点击一行，改变这行的复选框勾选
	    searchBtnClick("app/logRelation/list/1/"+pageSize+"?");//点击查询
	    addBtnClick("app/logRelation/add");//打开添加窗口
	    editBtnClick("appLogRelationTable","app/logRelation/edit/");
	    deleteData("appLogRelationTable","app/logRelation/delete/","app/logRelation/list/1/"
	    			+ pageSize + (isFilter ? ("?" + $("#searchForm").serialize()) : ""),135);//删除数据
	     
	    //去除所有控件的虚线框
	    removeBlur();
	});
})();
